package com.joey.cloud.provider.psn;

import com.joey.cloud.communal.dto.UserAuthDto;
import com.joey.cloud.communal.utils.ResponseUtil;
import org.springframework.stereotype.Component;

@Component
public class PsnFeignFallback implements PsnFeignService {


    @Override
    public ResponseUtil queryPersonNameById(String userIds) {
        return ResponseUtil.feignFail();
    }

    @Override
    public ResponseUtil getPerson(Long id) {
        return ResponseUtil.feignFail();
    }

    @Override
    public ResponseUtil<UserAuthDto> queryPsnAuthInfo(Long psnId) {
        UserAuthDto dto = new UserAuthDto();
        dto.setPsnId(psnId);
        return ResponseUtil.feignFail(dto);
    }

    @Override
    public ResponseUtil insertPsn(Object obj) {
        return ResponseUtil.feignFail();
    }
}
